package br.com.fiap.arquivo;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: gabriel.medina
 * Date: 25/09/12
 * Time: 10:16
 * To change this template use File | Settings | File Templates.
 */
public class Arquivo {

    private String rm;
    private List<String> listaRms = new ArrayList();


    public Arquivo(String rm){
        this.rm = rm;
    }

    public Arquivo(String rm, List<String> lista){
        this(rm);
        this.listaRms = lista;
    }


    public List getListaRm(){
        return listaRms;
    }

    public String getListaRm(int i){
        return listaRms.get(i);
    }

    public void setListaRm(List<String> list){
        this.listaRms = list;
    }

    public String getRM(){
        return this.rm;
    }

    public void setRM(String rm){
        this.rm = rm;
    }

    public void printList(){
        for(String list: listaRms){
            System.out.println(list);
        }

    }
 }
